﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace Modellayer
{
    [DataContract]
    public class Show
    {
        [DataMember]
        public List<Seat> seats;
        [DataMember]
        public ShowRoom showRoom;
        [DataMember]
        public Movie movie;
        [DataMember]
        public int showId  { get; set; }
        [DataMember]
        public DateTime showTime;

        public Show(int sId, DateTime sTime, ShowRoom sRoom, Movie m)
        {
            this.showRoom = sRoom;
            this.movie = m;
            this.showId = sId;
            this.showTime = sTime;
            seats = new List<Seat>();
            int i = 0;
            while (i < sRoom.numberOfSeats)
            {
                Seat s = new Seat();
                seats.Add(s);
                i++;
            }

        }
        public Show()
        {
            seats = new List<Seat>();
        }

    }
}
